﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WebProject.Core.Models
{
    [Table("Production")]
    public class Production : IEntity
    {
        [Key]
        public int Id
        {
            get; set;
        }

        public string ProductionName
        {
            get; set;
        }

        [ForeignKey("Id")]
        public ProductionType ProductionType
        {
            get; set;
        }

        public string ProductionImageUrl
        {
            get; set;
        }

        public DateTime CreateDate
        {
            get; set;
        }

        public bool IsDisplay
        {
            get; set;
        }

        public bool IsDisplayOnIndex
        {
            get;
            set;
        }

        public string Summary
        {
            get; set;
        }

        public string Description
        {
            get;
            set;
        }
    }
}